import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from './store'
import './router/promission' // 路由守卫，做动态路由的地方
import http from "./http";//引入请求库



import './plugins/elementui'
import './assets/scss/base.scss'


Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$http = http;//将http 放到VUE 的原型上 ，所有的子组件通过 this.$http 访问请求对象

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
